import { get, post } from "@/utils/request";
// 分页查询
export function queryPageList(query) {
  return get("/mgxxServer/hostAccount/pageList", query);
}
// 验证IP是否存在
export function getIp(id,ip) {
  return get("/mgxxServer/hostAccount/getIp",{ id ,ip});
}
// 验证Mac是否存在
export function getMac(id,mac) {
  return get("/mgxxServer/hostAccount/getMac",{ id ,mac});
}
//新增
export function addDatas(query) {
  return post("/mgxxServer/hostAccount/add", query);
}
//编辑
export function editDatas(query) {
  return post("/mgxxServer/hostAccount/edit", query);
}
//详情
export function queryById(id) {
  return get("/mgxxServer/hostAccount/getById", { id });
}
//统计安装数
export function getInstall(query) {
  return get("/mgxxServer/hostAccount/getInstall", query);
}

//删除
export function deleteDatas(ids) {
  return get("/mgxxServer/hostAccount/deleteBatch", { ids });
}

//导入
export function importAccount(query) {
  return post("/mgxxServer/hostAccount/importAccount", query);
}
